package com.qdxwx.data.mapper.user;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.user.UserAddress;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 收货地址
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
@Repository
public interface UserAddressMapper {

    UserAddress selectById(int id);

    int insertUserAddress(UserAddress userAddress);

    int updateUserAddress(UserAddress userAddress);

    int deleteById(int id);

    List<UserAddress> getList(@Param("e") UserAddress userAddress, @Param("page") PageRequest page);

    long count(@Param("e") UserAddress userAddress);

    int updateCombine(long userId1, long userId2);
}
